package com.tensquare.user.service.impl;

import com.tensquare.user.dao.UserDao;
import com.tensquare.user.pojo.User;
import com.tensquare.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author BAO
 * @version V1.0
 * @Package com.tensquare.user.service.impl
 * @date 2020/12/5 18:14
 * @description:
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User login(User user) {
        return userDao.selectOne(user);
    }

    @Override
    public User findById(String userId) {
        return userDao.selectById(userId);
    }
}
